home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1432.dms / var1432.adf / NDUK-V40.lha / V40 / include / exec / ports.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  1KB  |  56 lines

  1. #ifndef    EXEC_PORTS_H
  2. #define    EXEC_PORTS_H
  3. /*
  4. **    $VER: ports.h 39.0 (15.10.91)
  5. **    Includes Release 40.15
  6. **
  7. **    Message ports and Messages.
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_NODES_H
  14. #include "exec/nodes.h"
  15. #endif /* EXEC_NODES_H */
  16.  
  17. #ifndef EXEC_LISTS_H
  18. #include "exec/lists.h"
  19. #endif /* EXEC_LISTS_H */
  20.  
  21. #ifndef EXEC_TASKS_H
  22. #include "exec/tasks.h"
  23. #endif /* EXEC_TASKS_H */
  24.  
  25.  
  26. /****** MsgPort *****************************************************/
  27.  
  28. struct MsgPort {
  29.     struct  Node mp_Node;
  30.     UBYTE   mp_Flags;
  31.     UBYTE   mp_SigBit;        /* signal bit number    */
  32.     void   *mp_SigTask;        /* object to be signalled */
  33.     struct  List mp_MsgList;    /* message linked list    */
  34. };
  35.  
  36. #define mp_SoftInt mp_SigTask    /* Alias */
  37.  
  38. /* mp_Flags: Port arrival actions (PutMsg) */
  39. #define PF_ACTION    3    /* Mask */
  40. #define PA_SIGNAL    0    /* Signal task in mp_SigTask */
  41. #define PA_SOFTINT    1    /* Signal SoftInt in mp_SoftInt/mp_SigTask */
  42. #define PA_IGNORE    2    /* Ignore arrival */
  43.  
  44.  
  45. /****** Message *****************************************************/
  46.  
  47. struct Message {
  48.     struct  Node mn_Node;
  49.     struct  MsgPort *mn_ReplyPort;  /* message reply port */
  50.     UWORD   mn_Length;            /* total message length, in bytes */
  51.                     /* (include the size of the Message */
  52.                     /* structure in the length) */
  53. };
  54.  
  55. #endif    /* EXEC_PORTS_H */
  56.